#include<stdio.h>
#include<string.h>
void print(char t,char a[10][5])
{
	switch(t-'0')
		{
			case 0:	printf("%s",a[0]);break;
			case 1:	printf("%s",a[1]);break;
			case 2:	printf("%s",a[2]);break;
			case 3:	printf("%s",a[3]);break;
			case 4:	printf("%s",a[4]);break;
			case 5:	printf("%s",a[5]);break;
			case 6:	printf("%s",a[6]);break;
			case 7:	printf("%s",a[7]);break;
			case 8:	printf("%s",a[8]);break;
			case 9:	printf("%s",a[9]);break;
		}
	return;
}
int main()
{
	int temp,i=0,flag=0;
	char b[10000];
	char a[10][5]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
	long long sum=0;
	while( (temp=getchar())!='\n' )
		sum+=temp-'0';
	while( sum!=0 )
	{
		temp=sum%10;
		b[i++]=temp+'0';
		sum/=10;
		flag=1;
	}
	if(flag)
		b[i]='\0';
	else{
		b[0]='0';b[1]='\0';
	}
	for(i=strlen(b)-1;i>=0;i--)
	{
		print(b[i],a);
		if(i)
			printf(" ");
		else	printf("\n");
	}
	return 0;
}
